import request from "@/utils/request";

export const getWelcome = CategoryId => {
  return request({
    url: "/mall/agreement/getWelcome",
    method: "get"
  });
};

export const getBanners = CategoryId => {
  return request({
    url: `/mall/recommend/list/${CategoryId}`,
    method: "get"
  });
};
export const gettenant = () => {
  return request({
    url: "/mall/Icon/getIcons",
    method: "get"
  });
};

//logo获取
export const getLogo = () => {
  return request({
    url: "/mall/shopWebSetting/get",
    method: "post"
  });
};
//分类列表获取
export const getCategoryList = data => {
  return request({
    url: "/mall/shopHome/categoryList",
    method: "post",
    data: {}
  });
};
//分类展示列表
export const getCategoryProductList = data => {
  return request({
    url: "/mall/shopHome/categoryProductList",
    method: "post",
    data
  });
};
